#include <iostream>


bool ReturnTrue(){
    std::cout << "进入了ReturnTrue函数" << std::endl;
    return true;
}

bool ReturnFalse(){
    std::cout << "进入了ReturnFalse函数" << std::endl;
    return false;
}


int main(){

    std::cout << "test1开始..." << std::endl;
    bool test1 = ReturnTrue() | ReturnFalse();
    std::cout << "test1 = " << test1 << std::endl;

    std::cout << "======================" << std::endl;

    std::cout << "test2开始..." << std::endl;
    bool test2 = ReturnTrue() || ReturnFalse();
    std::cout << "test2 = " << test2 << std::endl;

    std::cout << "======================" << std::endl;

    std::cout << "test3开始..." << std::endl;
    bool test3 = ReturnTrue() & ReturnFalse();
    std::cout << "test3 = " << test3 << std::endl;

    std::cout << "======================" << std::endl;

    std::cout << "test4开始..." << std::endl;
    bool test4 = ReturnTrue() && ReturnFalse();
    std::cout << "test4 = " << test4 << std::endl;


    return 0;
}